#!/usr/bin/env python
#_*_coding:utf-8_*_
#交互连接
import paramiko
import interactive
import sys 
ip = sys.argv[2]
username = sys.argv[1]
passwd = sys.argv[3]

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(ip,22,username,passwd)
channel = ssh.invoke_shell()
interactive.interactive_shell(channel,ip,22,username)
channel.close()
ssh.close();